package file

import (
	"encoding/json"
)

type Json interface {
	Encoder(t interface{}) (string, error)
}

func Encoder(t interface{}) (string, error) {
	by, err := json.Marshal(t)
	return string(by), err
}
